import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'bootstrap/dist/css/bootstrap.min.css'
import router from '@/router/router.js'
import { axiosInstance } from '@/axios/axios-http.js' //引入写好的axios-http.js
import VueTouch from 'vue-touch' //导航栏滑动

const app = createApp(App)
app.config.globalProperties.$axios = axiosInstance //把axios绑定为全局变量
app.use(ElementPlus)
app.use(router)
app.mount('#app')
Vue.use(VueTouch, { name: 'v-touch' }) //导航栏滑块